# Contributor: Dermot Bradley <dermot_bradley@yahoo.com>
# Maintainer: Dermot Bradley <dermot_bradley@yahoo.com>
pkgname=s6-overlay-preinit
pkgver=1.0.5
pkgrel=0
pkgdesc="used by s6 overlay to initialise non-root containers"
url="https://github.com/just-containers/s6-overlay-preinit/"
arch="all"
license="ISC"
makedepends="skalibs-dev"
options="!check suid" # No tests provided. Requires SUID.
source="$pkgname-$pkgver.tar.gz::https://github.com/just-containers/s6-overlay-preinit/archive/v$pkgver.tar.gz"

build() {
	./configure \
		--enable-shared \
		--disable-allstatic \
		--with-sysdeps=/usr/lib/skalibs/sysdeps \
		--prefix=/
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="3f97e5933a16b9bbc93568bd04ca9bab0ecb6da64e7cb97b15178713321f6be20b7bc6bae7e83b3468df986a6fa91cef9606d91bb331905da98cb4edd3b4604b  s6-overlay-preinit-1.0.5.tar.gz"
